package org.thirdHero.core.config;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.beans.factory.InitializingBean;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.data.redis.core.RedisTemplate;

import javax.annotation.Resource;

/**
 * @Date 2018/11/13 14:08
 * @Description TODO
 **/
@Configuration
@EnableConfigurationProperties({RedisLockProperties.class})
public class RedisLockConfigure implements InitializingBean {
    private final Log logger = LogFactory.getLog(RedisLockConfigure.class);


    @Resource
    RedisLockProperties redisLockProperties;
    @Resource
    RedisTemplate redisTemplate;
    public RedisLockConfigure(){
        logger.info("loading redisLock config...");
    }

    @Override
    public void afterPropertiesSet() throws Exception {


    }
}